<?php
if(!defined('IN_UALINK')) exit('Access Denied');
function getIndustryList($arg, $name)
{
	global $industry, $theme_name, $industry_templet;
	global $smarty;
	$obj = new xajaxResponse();
	$obj->assign("loadingDIV", "style.display", "block");
	$obj->assign("industryDIV", "innerHTML", $industry->getIndustryPage(intval($arg), strtolower($name), $industry_templet));
	$obj->assign("loadingDIV", "style.display", "none");
	return $obj;
}
function rebuildHTML($page)
{
	global $htmlcache, $cookiepre;
	$obj = new xajaxResponse();
	if (STATIC_HTML_LEVEL>0) {
    	$if_recache = $htmlcache->needRecache($page);
    	if($if_recache){
    		header("Pragma:   no-cache");
    		$url = URL.$page."?action=html&token=".md5(AUTH_KEY)."";
    		$obj->redirect($url);
    	}
    	if(!empty($_COOKIE[$cookiepre.'auth'])){
    		$obj->assign("toolbar", "style.display", "none");
    		$obj->assign("afterLoginDiv", "style.display", "block");
    		$obj->assign("beforeLoginDiv", "style.display", "none");
    	}
    	return $obj;
	}else{
	    //do not create and check html cache. by stevenchow811@163.com 20090310.
	    return false;
	}

}
function getSubIndustry(){
	return true;
}
?>